package com.pankai.cn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pankai.cn.entity.Role;
import com.pankai.cn.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author pankai
 * @create 2020-11-30 16:36
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据用户名查询所有角色
     * @param userName
     * @return
     */
    User findRolesByUserName(String userName);


}
